<?php /* Smarty version Smarty-3.0.7, created on 2014-12-29 14:19:13
         compiled from "E:/project/runtime/development/lab/tryPHP/app_y001/view\oui/product/form.html" */ ?>
<?php /*%%SmartyHeaderCode:336054a0f2618f76a0-43103530%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b97e839fd4917ca30eaf18baebaec6ea2878a92a' => 
    array (
      0 => 'E:/project/runtime/development/lab/tryPHP/app_y001/view\\oui/product/form.html',
      1 => 1419833950,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '336054a0f2618f76a0-43103530',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("oui/public/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("oui/public/navibar.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template("oui/public/sidebar.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<div class="header">
    <div class="stats"><p class="stat"><!--旁注--></p></div>
    <h1 class="page-title"><?php echo $_smarty_tpl->getVariable('data')->value['meta']['title'];?>
</h1>
</div>
<!--优雅的分隔线-1-->
<ul class="breadcrumb">
    <li><a>控制面板</a><span class="divider">/</span></li>
    <li><a href=<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperLink(':product::listview');?>
>产品管理</a><span class="divider">/</span></li>
    <li class="active"><?php echo $_smarty_tpl->getVariable('data')->value['meta']['title'];?>
</li>
</ul>
<!--优雅的分隔线-->
<div class="container-fluid">
    <div class="row-fluid">
<!--优雅的分隔线-->
        <div class="well">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#main" data-toggle="tab">基本信息</a></li>
                <li class=""><a href="#option1" data-toggle="tab">选项</a></li>
            </ul>
            <form method="post" class="form" action=<?php echo $_smarty_tpl->getVariable('data')->value['meta']['action'];?>
>
            <div id="myTabContent" class="tab-content">
                <div id="main" class="tab-pane active in">
                    <label>名称</label>
                    <input type="text" class="input-xlarge-1" id="name" name="name" autofocus="true" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['name'];?>
>
                    <!--优雅的分隔线-->
                    <label>介绍</label>
                    <textarea class="input-xlarge hidden" id="description" name="description" rows="10" xheditor="true" height="360" upImgUrl=<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperLink(':common_xheditor::upload');?>
><?php echo $_smarty_tpl->getVariable('data')->value['base']['description'];?>
</textarea>
                </div>
                <div id="option1" class="tab-pane fade">
                    <label>图片<span id="cover1-error-paniel" class="label label-important hidden"></span></label>
                    <input type="text" class="input-xlarge" id="picture" name="picture" x-upload="true" x-data="cover1-error-paniel" x-upload-ui=<?php echo $_smarty_tpl->smarty->registered_objects['Route'][0]->MakeHyperLink(':common_upload');?>
 value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['picture'];?>
>
                    <!--优雅的分隔线-->
                    <label>类别</label>
                    <input type="hidden" id="category-value" name="category-value" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['category'];?>
>
                    <select class="select-xlarge-1" id="category" name="category">
                        <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('data')->value['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
?>
                        <option value=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
><?php echo $_smarty_tpl->tpl_vars['row']->value['name'];?>
</option>
                        <?php }} ?>
                    </select>
                    <!--优雅的分隔线-->
                    <label>标签</label>
                    <input class="input-xlarge-1" type="text" id="label" name="label" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['label'];?>
>
                    <!--优雅的分隔线-->
                    <label>摘要</label>
                    <textarea class="textarea-xlarge-3" id="summary" name="summary"><?php echo $_smarty_tpl->getVariable('data')->value['base']['summary'];?>
</textarea>
                </div>
                <div id="default-data" class="hidden">
                    <input type="hidden" id="id" name="id" value=<?php echo $_smarty_tpl->getVariable('data')->value['base']['id'];?>
>
                </div>
                <div class="btn-toolbar">
                    <button type="submit" class="btn btn-primary"><strong>提交</strong></button>
                </div>
            </div>
            </form>
        </div>
        <!--优雅的分隔线-->
        <script src=<?php echo @APP_PATH;?>
/view/oui/scripts/library/trigger.upload.js></script>
        <!--优雅的分隔线-->
        <script src=<?php echo @BUILD_PATH;?>
/public/JEAR/xheditor/xheditor-1.1.14-zh-cn.min.js></script>
        <script src=<?php echo @BUILD_PATH;?>
/public/JEAR/xheditor/xheditor.initialization.js></script>
        <!--优雅的分隔线-->
        <script src=<?php echo @APP_PATH;?>
/view/oui/scripts/product.form.js></script>
<?php $_template = new Smarty_Internal_Template("oui/public/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>